<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            jQuery(function($) {
                $("#footer").load("main/footer.html");
            });
        </script>
    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#index">首页</a>
        </li>
        <li class="active">会员管理</li>
        <li class="active">会员充值</li>
    </ul>
</div>
<div class="page-content" >
    <div class="row">
        <div class="col-xs-12">
            <form ng-submit="memberRechargeUpdate(memberRecharge)" class="form-horizontal" role="form" id="memberManagementForm">
                <!-- PAGE CONTENT BEGINS -->
                <div id="basediv">
                    <div class='row'>

                    </div>

                    <div class="widget-box" id="accordion">

                        <div class="widget-header">
                            <h4 class="widget-title" >
                                <i class="menu-icon fa fa-unlock"></i>
                                会员充值
                            </h4>

                            <div class="widget-toolbar">
                                <a data-toggle="collapse" data-parent="#accordion"
                                   href="./member_recharge_edit.html#collapseThree"> <i
                                        class="ace-icon fa fa-chevron-up"></i>
                                </a>
                            </div>
                        </div>
                        <div id="collapseThree">
                            <div class="widget-body">
                                <div class="widget-main" >
                                    <fieldset id="inverntoryDetailsFormFieldset">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="vipNum"> 操作的会员</label>
                                            <div class="col-sm-5">
										<span  class="block input-icon input-icon-right">
                                            <input type="text" disabled="disabled"  id="vipNum" name="vipNum" class="form-control" value="{{ memberRecharge.vipNum }}【{{ memberRecharge.menberName }}】"/>

                                            </select>
										</span>
                                            </div>
                                            <label class="col-sm-1 control-label no-padding-right"
                                                         for="balance">当前余额</label>
                                            <div class="col-sm-5">
										<span class="block input-icon input-icon-right" >
                                            <input type="text" disabled="disabled" ng-model="memberRecharge.balance" id="balance" name="balance" class="form-control" value="{{ memberRecharge.balance }}"/>
                                        </span>
                                            </div>
                                        </div>

                                        <div class="form-group">

                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="amount">存入金额</label>
                                            <div class="col-sm-2">
                                                <span class="block input-icon input-icon-right"> <input
                                                        type="text"    ng-model="memberRecharge.amount" id="amount" name="amount" class="form-control" value="{{ memberRecharge.amount }}"/>

                                                </span>
                                            </div>
                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="paymentMethod">付款方式</label>
                                            <div class="col-sm-2">
                                                <span class="block input-icon input-icon-right"> <select id="paymentMethod" name="paymentMethod" ng-model="memberRecharge.paymentMethod" class="form-control"
                                                        ng-options="pay for pay in payMethod"></select>
                                                </span>
                                            </div>

                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="activityAmount1">活动余额</label>
                                            <div class="col-sm-2">
										<span class="block input-icon input-icon-right" >
                                            <input type="text" disabled="disabled" ng-model="memberRecharge.activityAmount" id="activityAmount1" name="activityAmount1" class="form-control" value="{{ memberRecharge.activityAmount }}"/>
                                        </span>
                                            </div>
                                            <label class="col-sm-1 control-label no-padding-right" for="activityAmount"> 活动方式 </label>
                                            <div class="col-sm-2">
                                                <span class="block input-icon input-icon-right">
                                                    <select id="activityAmount" name="activityAmount" ng-model="memberRecharge.activityAmount" class="form-control"
                                                                 ng-options="activity.activityAmount as activity.actName for activity in activityList"></select>
                                                </span>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="comment"> 备注</label>
                                            <div class="col-sm-5">
										<span class="block input-icon input-icon-right">
                                          <input type="text"    ng-model="memberRecharge.comment" id="comment" name="comment" class="form-control" value="{{ memberRecharge.comment }}"/>

                                            </select>
										</span>
                                            </div>

                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="operatorNum">操作员</label>
                                            <div class="col-sm-5">
										<span class="block input-icon input-icon-right" >
                                            <select id="operatorNum" name="operatorNum" ng-model="memberRecharge.operatorNum.usrKey" class="form-control"
                                                    ng-options="stmUsr.usrKey as stmUsr.usrName for stmUsr in stmUsrList">
                                        </select>
                                        </span>
                                            </div>

                                        </div>
                                    </fieldset>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div style="margin-left:450px">
                    <button type="submit"
                                 class="btn btn-app btn-warning btn-xs" id="saveButton"> <i
                        class="ace-icon fa fa-floppy-o bigger-200"></i> 提交
                </button>
                    <a href="#" ng-click="returnList()" class="btn btn-app btn-pink btn-xs"
                       id="returnButton"> <i class="ace-icon fa fa-reply bigger-200"></i>
                        返回
                    </a>
                </div>
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="myModalLabel">输入会员卡卡号</h4>
                            </div>

                                <div class="modal-body">
                                    <div class="form-group">
                                        <label class="col-sm-5 control-label no-padding-right"
                                               for="vipInputNum">输入需存款的会员卡号</label>
                                        <div class="col-sm-5">
								<span class="block input-icon input-icon-right">
                                <input type="text"  required  ng-model="vipInputNum" id="vipInputNum" name="vipInputNum"
                                       class="form-control" ng-model="vipInputNum" value="{{ vipInputNum}}" />
                                </span>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                    <button type="button" ng-click="searchVipNum()" class="btn btn-primary">查询</button>
                                </div>

                        </div>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<script>
    $( "#birthday" ).fdatepicker({
			format: 'yyyy-mm-dd',
		});
    $( "#carExpire" ).fdatepicker({
			format: 'yyyy-mm-dd',
		});
</script>